// src/router.js
import { createRouter, createWebHistory } from 'vue-router';
// import RiskPatientList  from "./components/RiskPatientList.vue";
// import UserLogin  from "./components/Login.vue";
// import RiskPatientReport from "@/components/RiskPatientReport.vue";
// import FeedbackReport from "@/components/FeedbackReport.vue";
// import yoshiindex  from "./components/yoshiindex.vue";
// import HandledComplaints from "@/components/HandledComplaints.vue";
import MainLayout from '@/layout/MainLayout.vue'

const routes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/LoginView.vue'),
    },
    {
        path: '/',
        name: '首页',
        component: () => import('@/views/IndexView.vue')
    },
    {
        path: '/dataShow',
        component: MainLayout,
        redirect: '/dataShow',
        children: [

            {
                path: '/dataShow',
                name: '数据概览',
                component: () => import('@/views/DataShow.vue')
            },
            {
                path: '/taskDetail',
                name: '任务详情',
                component: () => import('@/views/TaskDetail.vue')
            },
            {
                path: '/apiConfig',
                name: 'API参数配置',
                component: () => import('@/views/ApiConfig.vue')
            },
            {
                path: '/voiceConfig',
                name: '音频配置',
                component: () => import('@/views/VoiceConfig.vue')
            },
            {
                path: '/videoConfig',
                name: '视频配置',
                component: () => import('@/views/VideoConfig.vue')
            },
            {
                path: '/deviceList',
                name: '设备列表',
                component: () => import('@/views/DeviceList.vue')
            },
            {
                path: '/mind',
                name: '个人中心',
                component: () => import('@/views/member/MindView.vue')
            },



        ]
    },
    {
        path: '/register',
        name: '用户注册',
        component: () => import('@/views/RegisterView.vue')
    },
    {
        path: '/yhxy',
        name: '用户协议',
        component: () => import('@/views/YhxyView.vue')
    },
    {
        path: '/ystk',
        name: '隐私条款',
        component: () => import('@/views/YstkView.vue')
    },
]





const router = createRouter({
    history: createWebHistory(),
    routes,
});
export default router;
